#include<stdio.h>
#include<stdlib.h>
#include<string.h>

const char* str = "Linux so easy!";
char tem[128] = {0};

int main()
{
    FILE* f1 = fopen("./bite.txt","w");
    if(f1 == NULL)
    {
        perror("fopen fali:");
        exit(-1);
    }

    int n = fwrite(str,strlen(str),sizeof(char),f1);
    fclose(f1);

    FILE* f2 = fopen("./bite.txt","r");
    fread(tem,strlen(str),sizeof(char),f2);
    printf("%s\n",tem);

    // fseek();
    fclose(f2);

    printf("%d\n",n);
    return 0;
}